<template>
  <div style="padding-bottom: 60px">
    <Header></Header>
    <Class></Class>
    <DailyRecommendation></DailyRecommendation>
    <PopularGoods></PopularGoods>
    <NoLogin></NoLogin>
    <ToTop></ToTop>
  </div>
</template>

<script>
import Header from "@/components/Index/Header";
import Class from "@/components/Index/Class";
import DailyRecommendation from "@/components/Index/DailyRecommendation";
import PopularGoods from "@/components/Index/PopularGoods";
import NoLogin from "@/components/Index/NoLogin";
import ToTop from "@/components/ToTop";
// import {Dialog} from 'vant';


export default {
  name: "IndexShow",
  components: {
    Header,
    Class,
    DailyRecommendation,
    PopularGoods,
    NoLogin,
    ToTop,
  },
  created() {
    this.$store.commit('changeNav', 0)
    console.log(this.$store.state.redFlag)
    // if(this.$store.state.isLogin&&this.$store.state.redFlag){
    //   Dialog.confirm({
    //     title: '红包雨优惠',
    //     message: '可以根据红包雨个别商品优惠',
    //   }).then(() => {
    //     this.$router.push({path: '/redenvelopes'})
    //     this.$store.state.redFlag = false
    //   }).catch(() => {
    //     this.$store.state.redFlag = false
    //   });
    // }
  }
}
</script>

<style scoped>

</style>